import { Container } from "../Container";
import { ViewerService } from "./ViewerService";
import { AppSetting } from "../AppSetting";
import { DataService } from "./DataService";

export class ModelSearchService {
    AppSetting = Container.defineProperty(AppSetting);
    ViewerService = Container.defineProperty(ViewerService);
    DataService = Container.defineProperty(DataService);
    getData(): ModelSearchItem[] {
        if (!this.DataService.Data.search) {
            this.DataService.Data.search = [];
        }
        return this.DataService.Data.search;
    }
}
export type ModelSearchItem = { name: string, searchText: string }
